/**
 * StartAction.java
 * @author: liuex
 * 2008-1-1 ����02:06:19
 *
 * note: 
 */
package lex.mtd.ui.actions;

import java.awt.event.ActionEvent;

import lex.mtd.core.DownloadManager;

public class StopAction extends BaseAction {
	public StopAction() {
		this.setName("Stop");
		this.setEnabled(false);
	}

	public void actionPerformed( ActionEvent e )
	{
		DownloadManager[] dms = this.getContentPane().getDownloadTable().getSelectedItems();
		if( 0 == dms.length )
			return;
		for( DownloadManager dm : dms )
			dm.stop();
	}
}
